<!-- directive:title 图片转base64格式 -->
<!-- directive:breadcrumb 图片转base64格式 -->
<div class="panel-body">
    <div class='panel panel-default'>
        <div class='panel-heading'> 拖拽获取文件指令 </div>
        <div class='panel-body'>
            <div id="drop_area" dropfun="dropfun2(list)"
                style="height:100px; border:3px dashed silver; line-height:100px; text-align:center; font-size:36px; color:#d3d3d3">
                将图片拖拽到此区域
            </div>
            <div class="preview"></div>
        </div>
    </div>
</div>
<style type="text/css"> .preview img { background: red; } </style>